<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //点击访问的过程 从左到右   back[返回 左]  forward 向前[右走]
        console.log(window.history.go(1));
        console.log(history.back());  
        console.log(history.forward());

    </script>



</body>
</html>